package com.example.framework509.codeGen.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.framework509.codeGen.service.SqlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
@DS("gen_db")
public class SqlServiceImpl implements SqlService {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    @DS("gen_db")
    public void executeSql(String sql) {
        jdbcTemplate.execute(sql);
    }

}
